
/**
 *
 * @functionNameRules
 * 平台简称+功能描述+Api
 * eg: 唤起用户授权 : ali(平台简称)+Authorization(功能描述)+Api == aliAuthorizationApi
 *
 **/


 "use strict"


/**
 *
 * @Describe 唤起用户授权
 * @Author zpw
 * @Param null
 * @Create-time 2019/09/05
 * @Update-time 2019/09/05
 * @Literature  https://docs.alipay.com/mini/introduce/authcode
 *
 **/

function aliAuthorizationApi(){
	my.postMessage({'runMethod': 'getAuthorization'});
}


/**
 *
 * @Describe 唤起支付
 * @Author zpw
 * @Param null
 * @Create-time 2019/09/05
 * @Update-time 2019/09/05
 * @Literature  https://docs.alipay.com/mini/introduce/pay
 *
 **/

 function aliPaymentApi(){
 	my.postMessage({'runMethod': 'wakeUpPayment'});
 }

 /**
 *
 * @Describe 
 * @Effect 
 * @Author zpw
 * @Param null
 * @Create-time 2019/09/11
 * @Update-time 2019/09/11
 * @Literature  
 *
 **/

 function cardPackageApi(url){
 	console.log("唤起卡包");
 }


/**
 *
 * @Describe 当前文档基本信息
 * @Author zpw
 * @Param null
 * @Create-time 2019/09/05
 * @Update-time 2019/09/05
 * @Literature  
 *
 **/

 function aliDocumentInfomationApi(){
 	return {
	  	"name" : "ali-api",
	  	"author" : "张盼伟",
	  	"phone" : "15600117320",
	  	"email" : "15600117320@163.com",
	  	"describe" : "暴露支付宝小程序原生api供h5调用"
	  }
 }



